package com.dxy.yzs.marathon.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dxy.yzs.marathon.domain.Label;
import com.dxy.yzs.marathon.service.LabelService;
import com.dxy.yzs.marathon.mapper.LabelMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class LabelServiceImpl extends ServiceImpl<LabelMapper, Label>
    implements LabelService{

    @Override
    public List<Label> search(String text) {
        return lambdaQuery().like(Label::getContent, text).eq(Label::getType, 0).list();
    }
}




